Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for mock da #180

Merged
merged 18 commits into from
Jul 4, 2023
Merged

Conversation

mtsitrin
Copy link
Contributor

@mtsitrin mtsitrin commented Jul 4, 2023

  • moved config related to config package
  • created datalayer interface for da layers to be used by the different commands
  • Implemented mock DA feature

PR Standards

Opening a pull request should be able to meet the following requirements


For Author:

  • Targeted PR against correct branch
  • included the correct type prefix in the PR title
  • Linked to Github issue with discussion and accepted design
  • Targets only one github issue
  • Wrote unit and integration tests
  • All CI checks have passed
  • Added relevant godoc comments

For Reviewer:

  • confirmed the correct type prefix in the PR title
  • Reviewers assigned
  • confirmed all author checklist items have been addressed

After reviewer approval:

  • In case targets main branch, PR should be squashed and merged.
  • In case PR targets a release branch, PR should be rebased.

Base automatically changed from mtsitrin/157-interactive-cli-improvements-suggestions to main July 4, 2023 07:29
@mtsitrin mtsitrin force-pushed the mtsitrin/165-add-support-for-mock-da branch from 8ee279d to 236a378 Compare July 4, 2023 07:52
@mtsitrin mtsitrin linked an issue Jul 4, 2023 that may be closed by this pull request
@mtsitrin mtsitrin marked this pull request as ready for review July 4, 2023 08:03
@mtsitrin mtsitrin requested a review from a team as a code owner July 4, 2023 08:03
return `
A valid RollApp ID should follow the format 'name_uniqueID-revision', where
- 'name' is made up of lowercase English letters
- 'uniqueID' is a 1 to 5 digit number representing the unique ID EIP155 rollapp ID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 'uniqueID' is a 1 to 5 digit number representing the unique ID EIP155 rollapp ID
- 'uniqueID' is a number up to the length of 5 digits representing the unique ID EIP155 rollapp ID

A valid RollApp ID should follow the format 'name_uniqueID-revision', where
- 'name' is made up of lowercase English letters
- 'uniqueID' is a 1 to 5 digit number representing the unique ID EIP155 rollapp ID
- 'revision' is a 1 to 5 digit number representing the revision number for this rollapp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

dalayer = &damock.DAMock{}
default:
//TODO: return error
panic("Unknown data layer type")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the todo, it can harm the ux if the user tries to edit the DA manually

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it won't reach here as the args validated beforehand

startDALCCmd := da_start.GetStartDACmd(rollappConfig, consts.DefaultCelestiaRPC)
startDALCCmd := damanager.GetStartDACmd(consts.DefaultCelestiaRPC)
if startDALCCmd == nil {
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you call waitinggroup.done?

Copy link
Contributor

@ItayLevyOfficial ItayLevyOfficial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mtsitrin mtsitrin merged commit 8b50d34 into main Jul 4, 2023
@mtsitrin mtsitrin deleted the mtsitrin/165-add-support-for-mock-da branch July 4, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for mock da
2 participants